package com.example.administrator.printoutindemo.mvp.ui.adapter;

import android.content.Context;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.administrator.printoutindemo.R;
import com.example.administrator.printoutindemo.mvp.ui.entity.SaoMiaoCangWeiMa;

import java.util.List;

//import me.jessyan.armscomponent.commonres.utils.GlideUtil;


public class SaoMiaoCangWeiMaAdapter extends BaseQuickAdapter<SaoMiaoCangWeiMa, BaseViewHolder> {

    private Context mContext;

    public SaoMiaoCangWeiMaAdapter(Context context, @Nullable List<SaoMiaoCangWeiMa> data) {
        super(R.layout.item_sao_miao_cang_wei_ma, data);
        this.mContext = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, SaoMiaoCangWeiMa item) {
        //GlideUtil.loadImage(mContext,item.getImg(),helper.getView(R.id.img_head));
        helper.setText(R.id.tv_wu_liao_ming_cheng, item.getMaterial());
        helper.setText(R.id.tv_shu_liang, item.getNums());
    }

}
